package com.dwyinyuan.interfaces.dto;

import com.alibaba.excel.annotation.*;
import com.alibaba.excel.annotation.format.*;
import com.dwyinyuan.infrastructure.util.utils.*;
import lombok.*;

import java.io.*;
import java.time.*;

/**
 * 微信公众号：笛舞音缘
 * <p>
 * Excel导出实体对象
 * <p>
 * Created by andy  on 2020-12-16.
 */
@Data
public class UserExportDTO implements Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -1933919487755303928L;

    /**
     * String 类型
     */
    @ExcelProperty(value = "用户名")
    private String username;

    /**
     * Integer 类型
     */
    @ExcelProperty(value = "年龄")
    private Integer age;

    /**
     * Long 类型
     */
    @ExcelProperty(value = "版本号")
    private Long version;

    /**
     * LocalDateTime 类型
     */
    @ExcelProperty(value = "创建时间", converter = LocalDateTimeStringConverter.class)
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒SSS毫秒")
    private LocalDateTime created;
}
